feat: 拆分 default workdir 与 session workdir(P0-3)#131
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
minorcell
reviewed
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
为落实 #121,需要把全局
workdir语义拆分为“配置默认值”和“会话运行态”,避免用户在会话中切换目录时污染全局 YAML。本次改动
default_workdir持久化语义workdirSession增加会话级workdir/workspace(/cwd别名)命令,支持会话级工作区切换&命令执行改为使用当前会话工作区,避免“显示目录”和“执行目录”不一致config/runtime/tui的回归与兼容测试解析优先级
bash.workdir)workdirdefault_workdir验证
go test ./...风险与兼容
-兼容个🥚 一刀切
Closes #121